<template>
	<div id="app">
		<router-view />
		<theme-picker />
	</div>
</template>

<script>
import ThemePicker from '@/components/ThemePicker';

export default {
	name: 'App',
	components: { ThemePicker },
	created() {
		console.log('NODE_ENV',process.env.NODE_ENV,process.env.VUE_APP_TITLE)
	},
	metaInfo() {
		return {
			title:
				this.$store.state.settings.dynamicTitle &&
				this.$store.state.settings.title,
			titleTemplate: (title) => {
				return title
					? `${title} - ${process.env.VUE_APP_TITLE}`
					: process.env.VUE_APP_TITLE;
			},
		};
	},
};
</script>
<style >
#app .theme-picker {
	display: none;
}

.flex-center {
	display: flex !important;
	align-items: center;
	justify-content: center;
}

.flex-row {
	display: flex;
	flex-direction: row;
}

.flex-column {
	display: flex;
	flex-direction: column;
}

.flex-justCenter {
	display: flex;
	justify-content: center;
}

.flex-alignCenter {
	display: flex;
	align-items: center;
}

.flex-between {
	display: flex;
	justify-content: space-between;
}
</style>
